<#import '/ftlLibrary/properteisVariable.ftl' as pv/>
<div class="row">
	<div class="col-lg-12 col-sm-12 col-xs-12">
		<div class="widget">
			<div class="widget-header bordered-bottom theme">
				<span class="widget-caption">文件服务器-${(editModel=='add')?string('新增','编辑')}</span>
				<div class="widget-buttons">
					<a href="#" data-toggle="collapse">
						<i class="fa fa-minus"></i>
					</a>
					<a href="#" data-toggle="maximize">
						<i class="fa fa-expand"></i>
					</a>
				</div>
			</div>
			<div class="widget-body">
				<div class="row">
					<form class="editForm" action="${saveUrl}" method="post" responseType="JSON" role="form" id="editForm_${serializeNum}"
						data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
						data-bv-message="This value is not valid"
						data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
						data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
						data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
						<input type="hidden" name="formKey" value="${formKey}">
						<input type="hidden" name="formToken" value="${formToken}">
							<input type="hidden" name="id" value="${editEntity.id}">
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="ip" class="col-sm-2 control-label no-padding-right">ip地址</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="20" name="ip" alt="ip地址" id="ip" placeholder="ip地址" type="text" title="ip地址" class="form-control"  value="${editEntity.ip}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="ftpHost" class="col-sm-2 control-label no-padding-right">ftp端口</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="10" name="ftpHost" alt="ftp端口" id="ftpHost" placeholder="ftp端口" type="text" title="ftp端口" class="form-control"  value="${editEntity.ftpHost}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="ftpLoginName" class="col-sm-2 control-label no-padding-right">ftp账号</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="50" name="ftpLoginName" alt="ftp账号" id="ftpLoginName" placeholder="ftp账号" type="text" title="ftp账号" class="form-control"  value="${editEntity.ftpLoginName}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="ftpPassword" class="col-sm-2 control-label no-padding-right">ftp密码</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="50" name="ftpPassword" alt="ftp密码" id="ftpPassword" placeholder="ftp密码" type="text" title="ftp密码" class="form-control"  value="${editEntity.ftpPassword}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="uploadUrl" class="col-sm-2 control-label no-padding-right">非ftp上传地址</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="500" name="uploadUrl" alt="非ftp上传地址" id="uploadUrl" placeholder="非ftp上传地址" type="text" title="非ftp上传地址" class="form-control"  value="${editEntity.uploadUrl}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="rootDir" class="col-sm-2 control-label no-padding-right">存储根目录</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="500" name="rootDir" alt="存储根目录" id="rootDir" placeholder="存储根目录" type="text" title="存储根目录" class="form-control"  value="${editEntity.rootDir}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="remark" class="col-sm-2 control-label no-padding-right">备注</label>
									<div class="col-sm-10">
										<input data-bv-message="The field is not valid"maxlength="500" name="remark" alt="备注" id="remark" placeholder="备注" type="text" title="备注" class="form-control"  value="${editEntity.remark}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
							<#if (true && editModel=='add')||(true && editModel=='edit')>
							<div class="col-xm-12 col-sm-6 col-lg-4">
								<div class="form-group">
									<label for="status" class="col-sm-2 control-label no-padding-right">是否启用(1：启用,0：未启用)</label>
									<div class="col-sm-10">
										<input  data-bv-integer-message="The field is number" data-bv-message="The field is not valid" data-bv-integer="true"maxlength="11" name="status" alt="是否启用(1：启用,        0：未启用)" id="status" placeholder="是否启用(1：启用,        0：未启用)" type="text" title="是否启用(1：启用,        0：未启用)" class="form-control"  value="${editEntity.status}" />
										<span class="text"></span>
									</div>
								</div>
							</div>
							</#if>
						<div class="col-sm-12">
							<input type="button" class="btn btn-default" data-dismiss="modal" value="返回" onclick="backView()"/>
							<button type="submit" class="btn btn-blue" id="editFormSubmitBtn_${serializeNum}">保存</button>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="assets/js/validation/bootstrapValidator_init.js"></script>
<script>
$(".selectpicker_${serializeNum}").select2();
</script>